<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>定义项目的排列顺序。数值越小，排列越靠前</title>
		<style type="text/css">
			.content{
				display: flex;
				width: 500px;
				border: #000000 1px solid;
			}
			.item{
				/* order:1; */
				background-color: #009DFD;
			}
		</style>
	</head>
	<body>
		<div class="content">
			<div class="item" style="order: 3;">
				子元素1
			</div>
			<div class="item" style="order: 4;">
				子元素2
			</div>
			<div class="item" style="order: 1;">
				子元素3
			</div>
			<div class="item" style="order: 2;">
				子元素4
			</div>
			<div class="item" style="order: 0;">
				子元素5
			</div>
		</div>
	</body>
</html>
